package com.wnx.job.modules.nms.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.wnx.job.common.api.PageResult;
import com.wnx.job.common.api.QueryPageBean;
import com.wnx.job.modules.nms.dto.ArticleParam;
import com.wnx.job.modules.nms.model.NmsArticle;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangnaixing
 * @since 2021-12-16
 */
public interface NmsArticleService extends IService<NmsArticle> {
    /**
     * 保存咨询
     * @param articleParam
     */
    void saveArticle(ArticleParam articleParam);
    /**
     * 删除新闻咨询
     * @param id
     */
    void deleteArticle(Long id);

    /**
     * 分页查询
     * @param queryPageBean
     * @return
     */
    PageResult<NmsArticle> findByPage(QueryPageBean queryPageBean);

    /**
     * 根据栏目ID查询咨询数量
     * @param channelId
     * @return
     */
    long findCountByChannelId(Long channelId);
}
